package com.chen.controller;

import com.chen.pojo.common.PageResult;
import com.chen.pojo.entry.Orders;
import com.chen.service.OrderService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import java.time.LocalDate;

/**
 * @author chen
 * @version 1.0
 * @create_date 2025/8/24
 * 订单管理
 */
@RestController
public class OrderController {
    @Autowired
    private OrderService orderService;

    @GetMapping("api/order-service/order/search")
    public PageResult<Orders> searchList(Integer pageIndex, Integer pageSize, String orderNo,
                                         LocalDate start,LocalDate end) {
        return orderService.searchList(pageIndex, pageSize,orderNo,start,end);
    }

}
